﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="DangKy.aspx.cs" Inherits="AlumniProject.DangKy1" %>
<%@ Register Src="~/UserControl/DangKyCSV.ascx" TagPrefix="uc1" TagName="DangKyCSV" %>
<%@ Register Src="~/UserControl/DangKyGiangVien.ascx" TagPrefix="uc1" TagName="DangKyGiangVien" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentNoiDung" runat="server">
    <script type="text/javascript">
        
    </script>

    <style type="text/css">
        .containerdb {
            margin-top: 50px;
            padding-top: 50px;
        }
        .auto-style7 {
            width: 1208px;
            height: 68px;
        }
        .auto-style8 {
            width: 630px;
            height: 29px;
        }
        .auto-style9 {
            width: 1208px;
            height: 29px;
        }
        .auto-style10 {
            width: 630px;
            height: 30px;
        }
        .auto-style11 {
            width: 1208px;
            height: 30px;
        }
        .auto-style12 {
            width: 630px;
            height: 68px;
        }
        .auto-style14 {
            height: 30px;
        }
        .auto-style15 {
            height: 60px;
        }
        .auto-style16 {
            height: 31px;
        }
    </style>

    <div id="Contentdiv">
        <div id="containerdb" class="clear">

            <br/>
            <img src="Images/DangKy.png" />
                    <div class="clear" style="min-height: 10">
        </div>
             <div align="center">
            <table id="tbReg" style="width: 50%">
                <tr>
                    <td class="auto-style8">
                        <asp:Label runat="server" ID="lblTenDangNhap" Text="Tên đăng nhập"></asp:Label></td>
                    <td class="auto-style9">
                        <asp:TextBox ID="txtTenDangNhap" runat="server" />
                        <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" ForeColor="Red" ControlToValidate="txtTenDangNhap"
                            runat="server" ID="rq1" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style10">
                        <asp:Label runat="server" ID="lblMatKhau" Text="Mật khẩu"></asp:Label>
                    </td>
                    <td class="auto-style11">
                        <asp:TextBox ID="txtMatKhau" runat="server" TextMode="Password" />
                        <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" ForeColor="Red" ControlToValidate="txtMatKhau"
                            runat="server" ID="rq2" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style10">
                        <asp:Label runat="server" ID="lblReMatKhau" Text="Nhập lại mật khẩu"></asp:Label>
                    </td>
                    <td class="auto-style11">
                        <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password" />
                        <asp:CompareValidator ErrorMessage="Mật khẩu không trùng." ForeColor="Red" ControlToCompare="txtMatKhau"
                            ControlToValidate="txtConfirmPassword" runat="server" ID="rq3" />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style10">
                        <asp:Label runat="server" ID="lblEmail" Text="Email"></asp:Label>
                    </td>
                    <td class="auto-style11">
                        <asp:TextBox ID="txtEmail" runat="server" />
                        <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" Display="Dynamic" ForeColor="Red"
                            ControlToValidate="txtEmail" runat="server" ID="rq4" />
                        <asp:RegularExpressionValidator runat="server" Display="Dynamic" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ControlToValidate="txtEmail" ForeColor="Red" ID="rq5" ErrorMessage="Không đúng định dạng mail." />
                    </td>
                </tr>
                <tr>
                    <td class="auto-style12">
                        <asp:Label runat="server" Text="Đăng ký là" ID="lblDangKyLa"></asp:Label>
                    </td>
                    <td class="auto-style7">

                        <asp:RadioButtonList ID="rblDangKy" runat="server">
                            <Items>
                                <asp:ListItem Text="Cựu Sinh Viên" Value="csv" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="Giảng Viên" Value="gv"></asp:ListItem>
                                <asp:ListItem Text="Đơn Vị" Value="dv"></asp:ListItem>
                            </Items>
                        </asp:RadioButtonList>

                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center">
                        <asp:Button Text="Tiếp Tục" ID="btnDangKy" runat="server" OnClick="btnDangKy_Click" BackColor="#3333FF" BorderStyle="None" ForeColor="White" Height="28px" Width="80px" />
                    </td>
                </tr>
            </table>
            <asp:Panel ID="pnlGV" runat="server" Visible="False">
                <table style="width: 50%">
                    <tr>
                        <td class="auto-style14">Tên giảng viên
                        </td>
                        <td class="auto-style14">
                            <asp:TextBox runat="server" ID="txtTenGV"></asp:TextBox>
                            <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" ForeColor="Red"
                                ControlToValidate="txtTenGV" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style14">Mã giảng viên</td>
                        <td class="auto-style14">
                            <asp:TextBox runat="server" ID="txtMaGV"></asp:TextBox>
                            <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" ForeColor="Red"
                                ControlToValidate="txtTenGV" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style15">Giới tính
                        </td>
                        <td class="auto-style15">
                            <asp:RadioButtonList runat="server" ID="rbtGioiTinhGV">
                                <asp:ListItem Text="Nam" Value="1" Selected="True"></asp:ListItem>
                                <asp:ListItem Text="Nữ" Value="0"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style14">Ngày sinh
                        </td>
                        <td class="auto-style14">
                            <asp:TextBox runat="server" ID="txtNgaySinhGV"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style14">Số điện thoại 
                        </td>
                        <td class="auto-style14">
                            <asp:TextBox runat="server" ID="txtSoDTGV"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style14">Học vị
                        </td>
                        <td class="auto-style14">
                            <asp:DropDownList runat="server" ID="ddrHocVi" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:Button runat="server" CommandName="btnDangKyGV" ID="btnDangKyGV" Text="Hoàn Tất Đăng Ký" OnClick="btnDangKyGV_Click" BackColor="#3333FF" BorderStyle="None" ForeColor="White" Height="28px" Width="120px" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <asp:Panel ID="pnlCSV" runat="server" Visible="False">
                <table style="width: 366px">
    <tr>
        <td class="auto-style14">
            Tên cựu sinh viên
        </td>
        <td class="auto-style14">
            <asp:TextBox runat="server" ID="txtTenCSV"></asp:TextBox>
            <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" ForeColor="Red" 
                ControlToValidate="txtTenCSV" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="auto-style15">
            Giới tính
        </td>
        <td class="auto-style15">
            <asp:RadioButtonList runat="server" ID="rbtGioiTinh">
                <asp:ListItem Text="Nam" Value="1" Selected="True"></asp:ListItem>
                <asp:ListItem Text="Nữ" Value="0"></asp:ListItem>
            </asp:RadioButtonList>
        </td>
    </tr>
    <tr>
        <td class="auto-style14">
            CMND
        </td>
        <td class="auto-style14">
            <asp:TextBox runat="server" ID="txtCMNDCSV"></asp:TextBox>
            <asp:RequiredFieldValidator ErrorMessage="Yêu cầu nhập" ForeColor="Red" 
                ControlToValidate="txtCMNDCSV" runat="server" />
        </td>
    </tr>
    <tr>
        <td class="auto-style14">
            Ngày sinh
        </td>
        <td class="auto-style14">
            <asp:TextBox runat="server" ID="txtNgaySinh"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style14">
            Số nhà
        </td>
        <td class="auto-style14">
            <asp:TextBox runat="server" ID="txtSoNha"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style16">
            Tỉnh/ TP
        </td>
        <td class="auto-style16">
            <asp:DropDownList runat="server" ID="ddrTinh"/>
           
        </td>
    </tr>
    <tr>
        <td class="auto-style14">
            Số điện thoại  
        </td>
        <td class="auto-style14">
            <asp:TextBox runat="server" ID="txtSoDT"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td class="auto-style14">
            Lĩnh vực làm việc
        </td>
        <td class="auto-style14">
            <asp:DropDownList runat="server" ID="ddrLinhVuc"/>
            
        </td>
    </tr>
    <tr>
        <td class="auto-style14">
            Nơi công tác
        </td>
        <td class="auto-style14">
            <asp:DropDownList runat="server" ID="ddrNoiCongTac"/>
      </td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <asp:Button runat="server" ID="btnDangKyCSV" Text="Hoàn tất đăng ký" OnClick="btnDangKyCSV_Click" BackColor="#3333FF" BorderStyle="None" ForeColor="White" Height="28px" Width="120px"/>
        </td>
    </tr>
</table>
            </asp:Panel>
            <asp:PlaceHolder runat="server" ID="UserReg"></asp:PlaceHolder>
        </div>
        <div class="clear">
        </div>

    </div>
    </div>
</asp:Content>
